<?php
/**
 * Created by PhpStorm.
 * User:雨寒
 * Date: 2018/8/28
 * Time: 11:20
 */

namespace app\www\controller;

use think\Session;

class Suggest extends Common
{
    //wap Suggest/index 意见反馈
    public function index(){
        if(request()->isGet()){
            return $this->fetch();
        }
        if(request()->isAjax()){
            $content = request()->param('content');
            $access_token=session::get("access_token");
            $data1=array(
                "module"=>'Member',
                "interface"=>'1013',
                "version"=>'1.0.0',
                "data"=> [
                    "content"=> $content,
                    "access_token"=> $access_token
                ]
            );
            $res=curl_post(config('self_url'),json_encode($data1));
            echo $res;

        }

    }




}